onFragmentPreAttached
open fun onFragmentPreAttached(@NonNull fm: FragmentManager, @NonNull f: Fragment, @NonNull context: Context)(source)
Called right before the fragment's onAttach method is called. This is a good time to inject any required dependencies or perform other configuration for the fragment before any of the fragment's lifecycle methods are invoked.
Parameters
fm
Host FragmentManager
f
Fragment changing state
context
Context that the Fragment is being attached to